package com.yipinhouse.employee.common;

import com.yipinhouse.common.resultcode.ResultCode;

public enum EmployeeResultCode implements ResultCode {

    HOUSE_CAN_NOT_ORDER(5000, "房源不可预定"),
    LOCK_FAILED(5001, "redis枷锁失败！"),
    HOUSE_ORDER_FAILED(5002, "房源预定失败！")

    ;

    private int code;
    private String message;

    private EmployeeResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
